import type { Option, Question } from '@/types'

export interface QuizOptionProps {
  option: Option
  selected: boolean
  disabled: boolean
  onSelect: (value: string) => void
  showAnswer: boolean
  /**
   * 该选项是否正确的
   */
  isCorrect: boolean
  className?: string
}

export interface QuizOptionsProps {
  /**
   * 题目对象
   */
  question: Omit<Question, 'id' | 'title'>
  /**
   * 是否禁用
   */
  disabled?: boolean
  /**
   * 是否显示答案
   */
  showAnswer?: boolean
  /**
   * 选择回调
   */
  onSelect?: (value: string[]) => void

  className?: string
}
